package com.flying.invest.strategy.vo;

public class PriceChangeDetail {
	private final Double price_benchmark;	//基准价格
	
	private final Double rise_rate;
	private final Double max_price;			//最高价格
	
	private final Double fell_rate;
	private final Double min_price;			//最低价格
	
	private final Double price;				//当前价格
	
	public PriceChangeDetail(Double price_benchmark, Double rise_rate, Double fell_rate, Double price) {
		this.price_benchmark = price_benchmark;
		this.rise_rate = rise_rate;
		this.fell_rate = fell_rate;
		this.price = price;
		this.max_price = rise_rate == null?null: this.price_benchmark * (1 + rise_rate);
		this.min_price = fell_rate == null?null: this.price_benchmark * (1 - fell_rate);
	}

	public Double getPrice_benchmark() {
		return price_benchmark;
	}

	public Double getRise_rate() {
		return rise_rate;
	}

	public Double getMax_price() {
		return max_price;
	}

	public Double getFell_rate() {
		return fell_rate;
	}

	public Double getMin_price() {
		return min_price;
	}

	public Double getPrice() {
		return price;
	}
}
